import request from '@/utils/request'

// 查询课程标签关联列表
export function listCourseTagRelation(query) {
  return request({
    url: '/course/courseTagRelation/list',
    method: 'get',
    params: query
  })
}

// 查询课程标签关联所有列表
export function listAllCourseTagRelation(query) {
  return request({
    url: '/course/courseTagRelation/listAll',
    method: 'get',
    params: query
  })
}

// 查询课程标签关联详细
export function getCourseTagRelation(id) {
  return request({
    url: '/course/courseTagRelation/getInfo/' + id,
    method: 'get'
  })
}

// 新增课程标签关联
export function addCourseTagRelation(data) {
  return request({
    url: '/course/courseTagRelation/add',
    method: 'post',
    data: data
  })
}

// 修改课程标签关联
export function updateCourseTagRelation(data) {
  return request({
    url: '/course/courseTagRelation/edit',
    method: 'post',
    data: data
  })
}

// 删除课程标签关联
export function delCourseTagRelation(id) {
  return request({
    url: '/course/courseTagRelation/remove/' + id,
    method: 'get'
  })
}
